package com.lfxfs.soap.request.soap;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import static com.lfxfs.soap.request.soap.SoapEnvelope.NAMESPACE_OF_ENVELOPE;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Envelope", namespace = NAMESPACE_OF_ENVELOPE)
public class SoapEnvelope {
    /**
     * soap 中 envelope namespace
     */
    public static final String NAMESPACE_OF_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
    /**
     * soap 中 receiveB2COrderResponse namespace
     */
    public static final String NAMESPACE_OF_RECEIVEB2CORDER = "http://www.sdo.com/mas/api/receive/";


    @XmlElement(name = "Header", namespace = NAMESPACE_OF_ENVELOPE)
    private SoapHeader header;
    @XmlElement(name = "Body", namespace = NAMESPACE_OF_ENVELOPE )
    private SoapBody body;
}
